<p>Deprecated classes and interfaces should be avoided, rather than used, inherited or extended. Deprecation is a warning that the class or interface has been superseded, and will eventually be removed. The deprecation period allows you to make a smooth transition away from the aging, soon-to-be-retired technology.</p>

<h2>Noncompliant Code Example</h2>
<pre>
/**
* @deprecated  As of release 1.3, replaced by {@link #Fee}
*/@Deprecated
class Foo { ... }

class Bar extends Foo { ... }
</pre>

<h2>Compliant Solution</h2>
<pre>
class Bar extends Fee { ... }
</pre>

<h2>Exception</h2>
<p>When the class that extends a deprecated class is itself deprecated, the extending class will be ignored.</p>
<pre>
@Deprecated
class Bar extends Foo { ... } // compliant Bar is deprecated.
</pre>

  <h2>See</h2>
    <ul>
      <li><a href="http://cwe.mitre.org/data/definitions/477.html">MITRE, CWE-477</a> - Use of Obsolete Functions</li>
    </ul>
